# coding=utf-8
#Python 创建二维数组
def genMatrix(rows,cols):
    matrix = [[col + row for col in range(cols)] for row in range(rows)]
    for i in range(rows):
        for j in range(cols):
            print matrix[i][j],
        print '\n'
        
if __name__ == '__main__':
    genMatrix(5, 8)
    